Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Dec 1, 2025

No description provided.

@jmgasper jmgasper merged commit e0790eb into master Dec 1, 2025
5 checks passed
p.created_at,
w.winner_id as user_id
FROM finance.payment p
INNER JOIN finance.winnings w on p.winnings_id = w.winning_id
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
The join condition uses p.winnings_id = w.winning_id. Ensure that both winnings_id and winning_id are indexed to optimize the join performance, especially if these tables are large.

WHERE p.created_at >= $1::timestamptz
AND p.created_at <= $2::timestamptz
ORDER BY p.created_at DESC;
AND p.billing_account = '80000062'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ maintainability]
The hardcoded billing account value '80000062' could lead to maintainability issues if this value needs to change in the future. Consider parameterizing this value to improve flexibility and maintainability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants